<template>
<div class="center">
    <table width="916" border="0" cellpadding="0" cellspacing="0" style="width:687.00pt;border-collapse:collapse;table-layout:fixed;">
   <colgroup><col width="100" style="mso-width-source:userset;mso-width-alt:3200;">
   <col width="97" style="mso-width-source:userset;mso-width-alt:3104;">
   <col width="119" style="mso-width-source:userset;mso-width-alt:3808;">
   <col width="72" style="width:54.00pt;">
   <col width="86" style="mso-width-source:userset;mso-width-alt:2752;">
   <col width="98" style="mso-width-source:userset;mso-width-alt:3136;">
   <col width="72" style="width:54.00pt;">
   <col width="120" style="mso-width-source:userset;mso-width-alt:3840;">
   <col width="72" style="width:54.00pt;">
   <col width="80" style="mso-width-source:userset;mso-width-alt:2560;">
   </colgroup><tbody><tr height="19" style="height:14.25pt;">
    <td class="xl65" height="19" width="764" colspan="8" style="height:14.25pt;width:573.00pt;border-right:none;border-bottom:none;text-align:center;" x:str="">电气第二种工作票</td>
    <td class="xl108" width="152" colspan="2" rowspan="3" style="width:114.00pt;border-right:.5pt solid windowtext;border-bottom:none;"></td>
   </tr>
   
   <tr height="19" style="height:14.25pt;">
    <td class="xl67" height="19" style="height:14.25pt;" x:str="">No：</td>
    <td class="xl69" colspan="2" style="border-right:none;border-bottom:none;">{{this.bb.rwdId}}</td>
    <td class="xl68" colspan="5" style="mso-ignore:colspan;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl70" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">风电场：{{this.bb.orgName_dictText}}</td>
    <td class="xl70" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">编号：{{this.bb.num}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="" v-if="!draft" >作业队伍类别：{{this.bb.teamType}}</td>
    <td class="xl71" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="" v-if="draft" >作业队伍类别：
        <j-dict-select-tag v-model="teamType" dictCode="team_type" placeholder="请选择作业队伍类别" style="width:410px;"/>
    </td>
    <td class="xl72 b" x:str="">工作协调人：</td>
    <td class="xl73" v-if="!draft">{{this.bb.workConcertPerson}}</td>
     <td class="xl73" v-if="draft">
         <a-input v-model="workConcertPerson"></a-input>
     </td>
    <td class="xl74" x:str="">班组（部门）：</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.concertClass1}}</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="concertClass1"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="" v-if="!draft">有限空间类别：{{this.bb.limitSpaceType}}</td>
    <td class="xl75" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="" v-if="draft">有限空间类别：
        <j-dict-select-tag v-model="limitSpaceType" dictCode="limit_space_type" placeholder="请选择有限空间类别" style="width:410px;"/>
    </td>
    <td class="xl72 b" x:str="">第二监护人：</td>
    <td class="xl74" v-if="!draft">{{this.bb.secondConcertPerson}}</td>
    <td class="xl74" v-if="draft">
        <a-input v-model="secondConcertPerson"></a-input>
    </td>
    <td class="xl74" x:str="">班组（部门）：</td>
    <td class="xl114" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.concertClass2}}</td>
    <td class="xl114" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="concertClass2"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl72" height="19" style="height:14.25pt;" x:str="">工作负责人：</td>
    <td class="xl74" v-if="!draft">{{this.bb.workOndutyPerson0}}</td>
    <td class="xl74" v-if="draft"><a-input v-model="workOndutyPerson0"></a-input></td>
    <td class="xl74" x:str="">班组（部门）：</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.orgName_dictText}}</td>
    <td class="xl72" x:str="">附页：</td>
    <td class="xl78" v-if="!draft">{{this.bb.opageNum}}</td>
    <td class="xl78" v-if="draft">
        <a-input v-model="opageNum"></a-input>
    </td>
    <td class="xl78" x:str="">张</td>
    <td class="xl78"></td>
    <td class="xl106"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">工作班成员：</td>
    <td class="xl75" colspan="8" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.classMember}}</td>
     <td class="xl75" colspan="8" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="draft">
          <a-textarea
      v-model="classMember"
      placeholder="请输入工作班成员"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
     </td>
    <td class="xl106" x:str="" v-if="!draft">（共 {{this.bb.classMemberNum }}人）</td>
    <td class="xl106" x:str="" v-if="draft">（共 <a-input v-model="classMemberNum" />人）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="38" rowspan="2" style="height:28.50pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作任务</td>
    <td class="xl79" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:none;" x:str="">工作地点及双重设备名称：</td>
    <td class="xl79" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:none;" x:str="">工作内容:</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl82" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.workTask}}</td>
    <td class="xl82" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <a-input v-model="workTask"></a-input>
    </td>
    <td class="xl82" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.workDetail}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">计划工作时间：自</td>
    <td class="xl76" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.planStartDate}}</td>
    <td class="xl76" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="draft">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="planStartDate"></j-date>
    </td>
    <td class="xl74" x:str="">至</td>
    <td class="xl76" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.planEndDate}}</td>
    <td class="xl76" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="planEndDate"></j-date>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="10" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施及注意事项：</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">安全措施及注意事项（由工作负责人填写）</td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">执行情况（由工作负责人填写）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.safeAction}}</td>
    <td class="xl77" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <a-textarea
      v-model="safeAction"
      placeholder="请输入工作班成员"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!draft">{{this.bb.actionDetail}}</td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="draft">
         <a-textarea
      v-model="actionDetail"
      placeholder="请输入工作班成员"
      :auto-size="{ minRows: 3, maxRows: 5 }"
    />
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl72" height="19" style="height:14.25pt;" x:str="">工作票签发：</td>
    <td class="xl74" x:str="">签发时间：</td>
    <td class="xl76" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAssignDate}}</td>
     <td class="xl76" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketAssignDate"></j-date>
     </td>
    <td class="xl75" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="" >工作票签发人签名：</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!sign">{{this.bb.ticketAsignPerson}}</td>
    <td class="xl76" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="sign">
        <a-input v-model="ticketAsignPerson"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl87" height="19" colspan="2" style="height:14.25pt;mso-ignore:colspan;" x:str="">工作票接收：收票时间：</td>
    <td class="xl80" colspan="3" style="border-right:none;border-bottom:none;" v-if="!receive">{{this.bb.ticketAcceptDate}}</td>
    <td class="xl80" colspan="3" style="border-right:none;border-bottom:none;" v-if="receive">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketAcceptDate"></j-date>
    </td>
    <td class="xl89" colspan="3" style="border-right:none;border-bottom:none;" x:str="">工作票接收人签名：</td>
    <td class="xl80" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:none;" v-if="!receive">{{this.bb.ticketAcceptSign}}</td>
     <td class="xl80" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:none;" v-if="receive">
         <a-input v-model="ticketAcceptSign"></a-input>
     </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl90" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">批准结束时间：</td>
    <td class="xl83" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;"></td>
    <td class="xl92" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">集控值班负责人签名：</td>
    <td class="xl83" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl93" height="19" style="height:14.25pt;" x:str="">工作票许可：</td>
    <td class="xl94" x:str="">许可时间：</td>
    <td class="xl80" colspan="3" style="border-right:none;border-bottom:none;" v-if="!pending">{{this.bb.runPermmitDate}}</td>
    <td class="xl80" colspan="3" style="border-right:none;border-bottom:none;" v-if="pending">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="runPermmitDate"></j-date>
    </td>
    <td class="xl80" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:none;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl90" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作许可人签名：</td>
    <td class="xl83" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="!pending">{{this.bb.workPermmitSign}}</td>
     <td class="xl83" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="pending">
         <a-input v-model="workPermmitSign"></a-input>
     </td>
    <td class="xl92" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作负责人签名：</td>
    <td class="xl83" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!pendingfzr">{{this.bb.workOndutyPerson}}</td>
    <td class="xl83" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="pendingfzr">
        <a-input v-model="workOndutyPerson"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl95" height="19" colspan="3" style="height:14.25pt;border-right:none;border-bottom:none;" x:str="">工作负责人变更：原工作负责人</td>
    <td class="xl94">{{this.bb.oldOndutyPerson}}</td>
    <td class="xl94" x:str="">离去，变更</td>
    <td class="xl94">{{this.bb.newOndutyPerson}}</td>
    <td class="xl80" colspan="3" style="border-right:none;border-bottom:none;" x:str="">为工作负责人。工作票签发人签名</td>
    <td class="xl115">{{this.bb.ticketAssignSign2}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl96" height="19" style="height:14.25pt;" x:str="">变更时间：</td>
    <td class="xl83" colspan="4" style="border-right:none;border-bottom:.5pt solid windowtext;">{{this.bb.ondutyChangeDate}}</td>
    <td class="xl97" colspan="2" style="mso-ignore:colspan;"></td>
    <td class="xl91" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作许可人签名</td>
    <td class="xl116">{{this.bb.workPermmitSign2}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl95" height="19" colspan="3" style="height:14.25pt;border-right:none;border-bottom:none;" x:str="">工作班成员变更：离去人员名单</td>
    <td class="xl89" colspan="7" style="border-right:.5pt solid windowtext;border-bottom:none;">{{this.bb.classLeaveList}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl98" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:none;" x:str="">新增人员名单：</td>
    <td class="xl100" colspan="8" style="border-right:.5pt solid windowtext;border-bottom:none;">{{this.bb.classIntoList}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl96" height="19" style="height:14.25pt;" x:str="">变更时间：</td>
    <td class="xl92" colspan="4" style="border-right:none;border-bottom:.5pt solid windowtext;">{{this.bb.classChangeDate}}</td>
    <td class="xl97" colspan="2" style="mso-ignore:colspan;"></td>
    <td class="xl92" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作负责人签名：</td>
    <td class="xl116">{{this.bb.workOndutySign2}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl95" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:none;" x:str="">工作票延期：有效期延长至</td>
    <td class="xl80" colspan="3" style="border-right:none;border-bottom:none;">{{this.bb.ticketLayoutDate}}</td>
    <td class="xl94" colspan="4" style="mso-ignore:colspan;"></td>
    <td class="xl119"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl101" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">值长或班组长签名</td>
    <td class="xl83" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;">{{this.bb.ondutyAssign}}</td>
    <td class="xl97" colspan="2" style="mso-ignore:colspan;"></td>
    <td class="xl92" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作负责人签名：</td>
    <td class="xl116">{{this.bb.workOndutySign3}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="10" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">检修设备试运（不适用的工作可不填）</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="5" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票交回，所列安全措施已拆除，可以试运</td>
    <td class="xl77" colspan="5" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作票所列安全措施已执行，可以重新工作</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">允许试运时间</td>
    <td class="xl77" x:str="">工作许可人</td>
    <td class="xl77" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人</td>
    <td class="xl77" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">允许恢复工作时间</td>
    <td class="xl77" x:str="">工作许可人</td>
    <td class="xl77" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" x:str="">工作负责人</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl102" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ing">{{this.bb.testPermmitDate1	}}</td>
    <td class="xl102" height="19" colspan="2" style="height:14.25pt;border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ing">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="testPermmitDate1"></j-date>
    </td>
    <td class="xl77" v-if="!ing">{{this.bb.workPermmitPerson1}}</td>
    <td class="xl77" v-if="ing"><a-input v-model="workPermmitPerson1"></a-input></td>
    <td class="xl102" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ing">{{this.bb.workOndutyPerson1}}</td>
    <td class="xl102" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ing">
        <a-input v-model="workOndutyPerson1"></a-input>
    </td>
    <td class="xl102" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ing">{{this.bb.reworkPermmitDate1}}</td>
     <td class="xl102" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ing">
         <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="reworkPermmitDate1"></j-date>
     </td>
    <td class="xl77" v-if="!ing">{{this.bb.workPermmitPerson3}}</td>
    <td class="xl77" v-if="ing">
        <a-input v-model="workPermmitPerson3"></a-input>
    </td>
    <td class="xl102" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!ing">{{this.bb.workOndutyPerson3}}</td>
    <td class="xl102" colspan="2" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="ing">
        <a-input v-model="workOndutyPerson3"></a-input>
    </td>
   </tr>
   
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作票终结：</td>
    <td class="xl76" colspan="8" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作票终结时间123：</td>
    <td class="xl73" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="!ingxkr">{{this.bb.ticketOverDate}}</td>
     <td class="xl73" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="ingxkr">
         <a-input v-model="ticketOverDate"></a-input>
     </td>
    <td class="xl74" colspan="4" style="mso-ignore:colspan;"></td>
    <td class="xl106"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl104" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作负责人签名：</td>
    <td class="xl74" colspan="4" style="mso-ignore:colspan;" v-if="!ing">{{this.bb.workOndutySign4}}</td>
    <td class="xl74" colspan="4" style="mso-ignore:colspan;" v-if="ing">
        <a-input v-model="workOndutySign4"></a-input>
    </td>
    <td class="xl75" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="" >工作许可人签名：</td>
    <td class="xl106"  colspan="2" v-if="!ingxkr">{{this.bb.workPermmitSign0}}</td>
    <td class="xl106" colspan="2" v-if="ingxkr">
        <a-input v-model="workPermmitSign0"></a-input>
    </td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="3" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">接地线恢复情况：接地线（刀闸）共</td>
    <td class="xl74">{{this.bb.allWire}}</td>
    <td class="xl107" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">组，已拆除（拉开）</td>
    <td class="xl74">{{this.bb.openWire}}</td>
    <td class="xl107" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">组，未拆除（拉开）</td>
    <td class="xl106">{{this.bb.closeWire}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl77" height="19" colspan="3" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">未拆除或未拉开的接地线（刀闸）的编号</td>
    <td class="xl107" colspan="4" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.wireId}}</td>
    <td class="xl75" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">值长或班组长签名：</td>
    <td class="xl106"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl71" height="19" style="height:14.25pt;" x:str="">备注：</td>
    <td class="xl77" colspan="9" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;">{{this.bb.remarks}}</td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="2" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作票终结时间：</td>
    <td class="xl107" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;"></td>
    
    <td class="xl107" colspan="2" style="border-right:none;border-bottom:.5pt solid windowtext;" x:str="">集控值班负责人签名：</td>
    <td class="xl107" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;"></td>
   </tr>
   <tr height="19" style="height:14.25pt;">
    <td class="xl75" height="19" colspan="3" style="height:14.25pt;border-right:none;border-bottom:.5pt solid windowtext;" x:str="">工作负责人闭环管理：终结确认时间</td>
    <td class="xl76" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="!end">{{this.bb.ticketClosedDate}}</td>
    <td class="xl76" colspan="3" style="border-right:none;border-bottom:.5pt solid windowtext;" v-if="end">
        <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择时间" class="query-group-cust" v-model="ticketClosedDate"></j-date>
    </td>
    <td class="xl106" x:str="" colspan="2">工作负责人签字：</td>
 
    <td class="xl76" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="!end">{{this.bb.workOndutySign5}}</td>
     <td class="xl76" colspan="3" style="border-right:.5pt solid windowtext;border-bottom:.5pt solid windowtext;" v-if="end">
         <a-input v-model="workOndutySign5"></a-input>
     </td>
   </tr>
  </tbody></table>
    </div>
</template>
<script>
import JDate from '@/components/jeecg/JDate.vue'
import JDictSelectTag from '@/components/dict/JDictSelectTag.vue'
import store from '@/store'
import{Time} from '@/utils/time'
import { httpAction, getAction,postAction,putAction } from '@/api/manage'
export default {
     components: {
      JDate,
      JDictSelectTag,
    },
    data(){
        return{
           draft:false,
           teamType:'',
            workConcertPerson:'',
            concertClass1:'',
            limitSpaceType:'',
            secondConcertPerson:'',
            concertClass2:'',
            workOndutyPerson0:store.getters.userInfo.realname, 
            opageNum:'',
            classMember:'',
            classMemberNum:'',
            workTask:'',
            planStartDate:'',
            planEndDate:'',
            safeAction:'',
            actionDetail:'',
            sign:false,
            ticketAssignDate:Time(),
            ticketAsignPerson:store.getters.userInfo.realname,
            receive:false,
            ticketAcceptDate:Time(),
            ticketAcceptSign:store.getters.userInfo.realname,
            pending:false,
            pendingfzr:false,
            runPermmitDate:Time(),
            workPermmitSign:store.getters.userInfo.realname,
            workOndutyPerson:store.getters.userInfo.realname,
            ing:false,
            ingxkr:false,
            testPermmitDate1:'',
            workPermmitPerson1:'',
            workOndutyPerson1:'',
            reworkPermmitDate1:'',
            workPermmitPerson3:'',
            workOndutyPerson3:'',
            workPermmitSign0:store.getters.userInfo.realname,
            ticketOverDate:Time(),
            workOndutySign4:store.getters.userInfo.realname,
            end:false,
            ticketClosedDate:Time(),
            workOndutySign5:store.getters.userInfo.realname,

        }
    },
    props:['bb'], 
    methods:{
         refresh(){
            return this.bb.type
        },
        back(){
            var obj = {}
            if(this.draft == true){
                obj = {
                    id:this.bb.id,
                    teamType:this.teamType,
                    workConcertPerson:this.workConcertPerson,
                    concertClass1:this.concertClass1,
                    limitSpaceType:this.limitSpaceType,
                    secondConcertPerson:this.secondConcertPerson,
                    concertClass2:this.concertClass2,
                    workOndutyPerson0:this.workOndutyPerson0,
                    opageNum:this.opageNum,
                    classMember:this.classMember,
                    classMemberNum:this.classMemberNum,
                    workTask:this.workTask,
                    planStartDate:this.planStartDate,
                    planEndDate:this.planEndDate,
                    safeAction:this.safeAction,
                    actionDetail:this.actionDetail,
                }
            }else if(this.sign == true){
                obj = {
                    id:this.bb.id,
                     ticketAssignDate:this.ticketAssignDate,
                    ticketAsignPerson:this.ticketAsignPerson,
                }
            }else if(this.receive == true){
                obj = {
                    id:this.bb.id,
                    ticketAcceptDate:this.ticketAcceptDate,
                    ticketAcceptSign:this.ticketAcceptSign,
                }
            }else if(this.pending == true){
                obj = {
                    id:this.bb.id,
                    runPermmitDate:this.runPermmitDate,
                    workPermmitSign:this.workPermmitSign,
                }
            }else if(this.pendingfzr == true){
                obj={
                    id:this.bb.id,
                    workOndutyPerson:this.workOndutyPerson,
                }
            }else if(this.ing == true){
                obj = {
                    id:this.bb.id,
                    testPermmitDate1:this.testPermmitDate1,
                    workPermmitPerson1:this.workPermmitPerson1,
                    workOndutyPerson1:this.workOndutyPerson1,
                    reworkPermmitDate1:this.reworkPermmitDate1,
                    workPermmitPerson3:this.workPermmitPerson3,
                    workOndutyPerson3:this.workOndutyPerson3,
                    workOndutySign4:this.workOndutySign4,
                }
            }else if(this.ingxkr == true){
                obj={
                    id:this.bb.id,
                    workPermmitSign0:this.workPermmitSign0,
                    ticketOverDate:this.ticketOverDate,
                }
            }else if(this.end == true){
                obj = {
                    id:this.bb.id,
                     ticketClosedDate:this.ticketClosedDate,
                    workOndutySign5:this.workOndutySign5,
                }
            }
            return obj
    }
   
},
 mounted(){
        console.log('bb',this.bb)
         var params={
            userid:store.getters.userInfo.id
        }
             getAction('/sys/user/queryUserRole',params).then(res=>{
            console.log('dengji',res)
            if(res.result[0] == '1364736776864395266'){ //负责人
                if(this.bb.ticketAcceptSign != null && this.bb.workOndutyPerson == null){
                    this.pendingfzr = true
                    this.pending = false
                    
                }else if(this.bb.workOndutyPerson != null && this.bb.workOndutySign4 == null){
                    this.ing = true
                    this.ingxkr = false
                     
                }else if(this.bb.workOndutySign4 != null && this.bb.workOndutySign5 == null){
                    this.end = true
                    // this.ing = false
                    // this.ingxkr = false
                    //  this.pendingfzr = false
                    // this.pending = false
                    // this.receive = false
                    // this.sign = false
                    // this.draft = false
                }
            }else if(res.result[0] == '1364736908854947842'){ //许可人
                if(this.bb.ticketAcceptSign != null && this.bb.workPermmitSign == null){
                    this.pending = true
                    // this.receive = false
                    // this.sign = false
                    // this.draft = false
                    // this.pendingfzr = false
                    //  this.ingxkr = false
                    // this.ing = false
                }else if(this.bb.workPermmitSign != null && this.bb.workPermmitSign0 == null){
                    this.ingxkr = true
                    this.ing = false
                    //  this.pending = false
                    // this.receive = false
                    // this.sign = false
                    // this.draft = false
                    // this.pendingfzr = false

                }
            }else if(res.result[0] == '1370195812021153793'){  //消防监护人
              
            }else if(this.bb.fireExecutePerson4 == null){ //执行人
               
            }

        })
        if(this.bb.planStartDate == null){
            this.draft = true
        }
        if(this.bb.planStartDate != null && this.bb.ticketAsignPerson == null){
            this.sign = true
            // this.draft = false
        }
        if(this.bb.ticketAsignPerson != null && this.bb.ticketAcceptSign == null){
            this.receive = true
            // this.sign = false
            // this.draft = false
        }
        
     
    }
}
</script>
<style scoped>
td{
    padding-top: 1px;
    padding-right: 1px;
    padding-left: 1px;
    vertical-align: middle;
    white-space: nowrap;
    color: windowtext;
    font-size: 12pt;
    font-weight: 400;
    font-style: normal;
    font-family: 宋体;
    text-decoration: none;
    border: 1px solid #000;
     }
.center{
    width:916px;
     background-color: #E5EDF0 !important;
     } 
.b{
    position: relative;
}

</style>